//设置采购申请审核按钮状态
function setPaymentApOnlyViewButtonsStatus(status) {
    var nodeArray = [$("#verifyPaymentAp"), $("#notVerifyPaymentAp"), $("#cancelVerifyPaymentAp")];
    setLinkButtonStatus(nodeArray, [0, 0,0]);
    if (status === "提交") {
        setLinkButtonStatus(nodeArray, [1, 1,0]);
    }else if(status ==="审批通过"){
        setLinkButtonStatus(nodeArray, [0, 0,1]);
    }else if(status==="审批不通过"){
        setLinkButtonStatus(nodeArray, [0, 0,0]);
    }
}

//采购申请view审批页面刷新
function refreshPaymentApOnlyViewPage(data) {
    //上部init
    loadData(data.object.paidApplication);
    $('#paidStarttime').datebox({
        required: true,
        editable: false
    });
    $('#paidStarttime').datebox("setValue", data.object.paidApplication.paidStarttime);
    //下部init
    var options = getNotEditPaymentApSubOptions();
    options.data = data.object.paidApplicationSubList;
    initDataGridNoPager($('#subItem'), options);
    setPaymentApOnlyViewButtonsStatus(data.object.paidApplication.paidStatus);
}